package ms.platform.system.controller;

import ms.platform.util.DataReturn;

public class BaseController {

	public DataReturn returnSuccess(String msg, Object data){
		return new DataReturn(0, msg, data);
	}
	
	public DataReturn returnError(int errorCode, String msg, Object data){
		return new DataReturn(errorCode, msg, data);
	}
}
